<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>性别认证</title>
    <link rel="stylesheet" href="${base}/layui/css/layui.css">
    <link rel="stylesheet" href="${base}/awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="${base}/css/admin.css">
    <style>
    	.layui-bg-black{        width: 200px;height: 136px;margin-right: 30px;float: left;text-align: center;font-size: 33px;color: #000000!important;padding-top: 30px;}
    	.hide {display: none;}
    	.checkbox{display: inline-block;}
    	.layui-form-item{font-size: 18px;}
    	.width100 {width: 100px; margin-right: 30px;float: left;}
    	.width180 {width: 180px; margin-right: 20px;float: left;}
    	.layui-input { display: inline-block; }
    </style>
</head>
<body class="layui-layout-body" style="overflow:scroll;">
<#include "/common/left.flt">
<div class="layui-form hide" id="discuss" style="padding-top:20px;padding-right:20px;">
  <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block">
	  <select name="sex" id="sex" >
        <option value="1">男</option>
        <option value="2">女</option>
        <option value="3">CD</option>
        <option value="4">FtM</option>
        <option value="5">MtF</option>
      </select>
    </div>
  </div>
</div>	
<div class="layui-main" style="position: absolute;left: 204px;top: 4px; width: calc(100% - 210px);" >
<fieldset class="layui-elem-field layui-field-title" >
  <legend>操作提示</legend>
</fieldset>
<table class="layui-table" >
	<thead>
       <tr>
            <th>user_id</th>
            <th>照片</th>
            <th>操作</th>
        </tr>
     </thead>
     <tbody>
     <#list list as one>
     <tr>
     	<td>${one.user_id}</td>
     	<td><img src="http://qiniu.static.50dufei.top/${one.head?default('')}" /></td>
     	<td><a onclick="sure(${one.user_id});" ><span class="fa fa-gavel"></span>鉴定</a></td>
     </tr>
     </#list>
     </tbody>
</table>
<div id="pageDiv"></div>
<form action="${base}/util/uploadFile" method="post" name="uploadForm" enctype="multipart/form-data" id="uploadForm" class="hide" >
    <input name="pic" type="file" id="pic" class="hide"/>
</form>
</body>
<script src="${base}/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="${base}/layui/layui.all.js"></script>
<script type="text/javascript">
function sure(user_id){
	layer.open({
	    type: 1 ,
	    title: '鉴定男女', 
	    area: ['400px', '300px'],   //宽高
	    shade: 0.4,   //遮罩透明度
	    content: $("#discuss"),
	    btn: ['确定','关闭'], //按钮组
	    scrollbar: false ,//屏蔽浏览器滚动条
	    yes: function(index) {
	    	var sex = $("#sex").val();
	    	$.post("${base}/users_list/checkResult",
			   		{"user_id":user_id,"sex":sex},function(data){ 
			   			layer.alert(data);
			   			$("#discuss").hide();
			   			window.location.reload();
			   		}
			 );
	    	layer.close(index);
		    $("#discuss").hide();
	    },
		cancel: function(){
			$("#discuss").hide();
	    }
	});
}
</script>
</html>